home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / common.jar / text / common / 01 / 05020301.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  31.9 KB  |  394 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Number Format Codes</title><meta name="filename" content="text/common/01/05020301"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle6{
  5.                 margin-left:0cm; margin-right:0.005cm;}
  6.         span.Tabelle6A{
  7.                 width:3.316cm;}
  8.         span.Tabelle6B{
  9.                 width:14.676cm;}
  10.         table.Tabelle1{
  11.                 }
  12.         span.Tabelle1A{
  13.                 width:8.999cm;}
  14.         table.Tabelle2{
  15.                 }
  16.         span.Tabelle2A{
  17.                 width:8.999cm;}
  18.         table.Tabelle3{
  19.                 }
  20.         span.Tabelle3A{
  21.                 width:8.999cm;}
  22.         td.Tabelle3A1{
  23.                 }
  24.         table.Tabelle4{
  25.                 }
  26.         span.Tabelle4A{
  27.                 width:8.999cm;}
  28.         td.Tabelle4A1{
  29.                 }
  30.         table.Tabelle8{
  31.                 }
  32.         span.Tabelle8A{
  33.                 width:4.001cm;}
  34.         span.Tabelle8B{
  35.                 width:13.998cm;}
  36.         table.Tabelle9{
  37.                 margin-left:0cm; margin-right:0.005cm;}
  38.         span.Tabelle9A{
  39.                 width:8.326cm;}
  40.         span.Tabelle9B{
  41.                 width:9.668cm;}
  42.         td.Tabelle9A1{
  43.                 }
  44.         td.Tabelle9B1{
  45.                 border-width:0.002cm; border-style:solid; border-color:#000000;}
  46.         td.Tabelle9A2{
  47.                 }
  48.         td.Tabelle9B2{
  49.                 }
  50.         table.Tabelle5{
  51.                 }
  52.         span.Tabelle5A{
  53.                 width:8.999cm;}
  54.         table.Tabelle7{
  55.                 }
  56.         span.Tabelle7A{
  57.                 width:1.499cm;}
  58.         span.Tabelle7B{
  59.                 width:16.498cm;}
  60.         tr.Tabelle71{
  61.                 }
  62.         td.Tabelle7A1{
  63.                 }
  64.         p.P1{
  65.                 }
  66.         p.P2{
  67.                 }
  68.         p.P3{
  69.                 }
  70.         span.T1{
  71.                 font-weight:bold;}
  72.         span.fr1{
  73.                 }
  74.         </style></head><body>
  75.    
  76.    
  77.    <p class="P1"/>
  78.    <p class="Head1">Number Format Codes <help:key-word value="number format code" tag="kw65744_20" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="format code" tag="kw65744_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="formats; number format code" tag="kw65744_19" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="conditions; in number formats" tag="kw65744_18" xmlns:help="http://openoffice.org/2000/help"/></p>
  79.    <p class="Paragraph">The number format codes (under <help:link Id="65738" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Format - Cell - Number format</span></help:link>can consist of up to three sections separated by a semicolon (;).</p>
  80.    <ul class="L1">
  81.     <li class="">
  82.      <p class="P2">If the code has two sections, the first represents positive values and zero, and the second negative values.</p>
  83.     </li>
  84.     <li class="">
  85.      <p class="P2">If a code has three sections, the first is for positive values, the second for negative values and the third for zero.</p>
  86.     </li>
  87.    </ul>
  88.    <ul class="L2">
  89.     <li class="">
  90.      <p class="P3">You can also define conditions yourself, in this case you can make the first section of hits dependent on the first condition, the second section dependent on the second condition and the third section will only be run if the first two conditions do not apply. <help:link Id="65744" Eid="einbeispiel" xmlns:help="http://openoffice.org/2000/help">An example</help:link> is found at the end of this page.</p>
  91.     </li>
  92.    </ul>
  93.    <p class="Paragraph">Use the <span class="T1">Standard</span> format to display numbers as integers and fractions as decimals. Use <span class="T1">Scientific</span> to display numbers which exceed the width of the cell.</p>
  94.    <p class="Paragraph">To display a certain number of digits (0 or #) to the left and right of the decimal separator (period), insert the separator in the number format. If the format only contains the number sign (#) to the left of the decimal separator, numbers which are less than 1 will begin with a period.</p>
  95.    <p class="Paragraph">To create placeholders for numbers, enter the following format codes in a section. If the number has more places to the right of the decimal point than there are placeholders in the format, the number will be rounded according to the number of placeholders. If the number contains more digits left of the decimal point than are placeholders in the format, the actual numbers will be displayed.</p>
  96.    <table><tr class=""><th style="text-align:left;"><span class="Tabelle6A">
  97.        <p class="TableHead">Placeholders</p>
  98.       </span></th><th style="text-align:left;"><span class="Tabelle6B">
  99.        <p class="TableHead">Explanation</p>
  100.       </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle6A">
  101.       <p class="TextInTable">#</p>
  102.      </span></td><td style="text-align:left;"><span class="Tabelle6B">
  103.       <p class="TextInTable">doesn't display extra zeros.</p>
  104.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle6A">
  105.       <p class="TextInTable">0 (Zero)</p>
  106.      </span></td><td style="text-align:left;"><span class="Tabelle6B">
  107.       <p class="TextInTable">displays extra zeros if the number has less places than zeros in the format.</p>
  108.      </span></td></tr></table>
  109.    <p class="Paragraph"/>
  110.    <table><tr class=""><th style="text-align:left;"><span class="Tabelle1A">
  111.        <p class="TableHead">Number Format</p>
  112.       </span></th><th style="text-align:left;"><span class="Tabelle1A">
  113.        <p class="TableHead">Format Code</p>
  114.       </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  115.       <p class="TextInTable">3456.78 as 3456.8</p>
  116.      </span></td><td style="text-align:left;"><span class="Tabelle1A">
  117.       <p class="TextInTable">####.#</p>
  118.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  119.       <p class="TextInTable">9.9 as 9.900</p>
  120.      </span></td><td style="text-align:left;"><span class="Tabelle1A">
  121.       <p class="TextInTable">#.000</p>
  122.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  123.       <p class="TextInTable">13 as 13.0 and 1234.567 as 1234.57</p>
  124.      </span></td><td style="text-align:left;"><span class="Tabelle1A">
  125.       <p class="TextInTable">#.0#</p>
  126.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  127.       <p class="TextInTable">5.75 as 5 3/4 and 6.3 as 6 3/10</p>
  128.      </span></td><td style="text-align:left;"><span class="Tabelle1A">
  129.       <p class="TextInTable"># ???/???</p>
  130.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  131.       <p class="TextInTable">.5 as 0.5</p>
  132.      </span></td><td style="text-align:left;"><span class="Tabelle1A">
  133.       <p class="TextInTable">0.##</p>
  134.      </span></td></tr></table>
  135.    <p class="Paragraph"/>
  136.    <p class="Paragraph"><help:key-word value="fractions; entering" tag="kw65744_17" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="entering; fractions" tag="kw65744_16" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; entering fractions" tag="kw65744_15" xmlns:help="http://openoffice.org/2000/help"/>The number of question marks indicates how many digits can be included in the numerator and denominator in fractions. Fractions that do not fit the pattern are displayed as floating point numbers.</p>
  137.    <p class="Paragraph">To display a comma as a thousand separator or to scale a number with a factor of a thousand, insert a comma in the number format.</p>
  138.    <table><tr class=""><th style="text-align:left;"><span class="Tabelle2A">
  139.        <p class="TableHead">Number Format</p>
  140.       </span></th><th style="text-align:left;"><span class="Tabelle2A">
  141.        <p class="TableHead">Format Code</p>
  142.       </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle2A">
  143.       <p class="TextInTable">15000 as 15,000</p>
  144.      </span></td><td style="text-align:left;"><span class="Tabelle2A">
  145.       <p class="TextInTable">#,###</p>
  146.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle2A">
  147.       <p class="TextInTable">16000 as 16</p>
  148.      </span></td><td style="text-align:left;"><span class="Tabelle2A">
  149.       <p class="TextInTable">#,</p>
  150.      </span></td></tr></table>
  151.    <p class="Paragraph"/>
  152.    <p class="Paragraph">You can set a color for a section of the format by inserting the color name in square brackets.</p>
  153.    <table><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  154.       <p class="TextInTable">CYAN</p>
  155.      </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  156.       <p class="TextInTable">GREEN</p>
  157.      </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  158.       <p class="TextInTable">BLACK</p>
  159.      </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  160.       <p class="TextInTable">BLUE</p>
  161.      </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  162.       <p class="TextInTable">MAGENTA</p>
  163.      </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  164.       <p class="TextInTable">RED</p>
  165.      </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  166.       <p class="TextInTable">WHITE</p>
  167.      </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  168.       <p class="TextInTable">YELLOW</p>
  169.      </span></td></tr></table>
  170.    <p class="Paragraph"/>
  171.    <p class="Head2"><help:key-word value="date formats" tag="kw65744_14" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="format; date formats" tag="kw65744_13" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; date formats" tag="kw65744_12" xmlns:help="http://openoffice.org/2000/help"/>Number Format Codes for Date Formats</p>
  172.    <p class="Paragraph">To display days, months and years, insert the following format codes.</p>
  173.    <table><tr class=""><th class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  174.        <p class="TableHead">Format</p>
  175.       </span></th><th class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  176.        <p class="TableHead">Format Code</p>
  177.       </span></th></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  178.       <p class="TextInTable">Month as 3.</p>
  179.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  180.       <p class="TextInTable">M</p>
  181.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  182.       <p class="TextInTable">Month as 03.</p>
  183.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  184.       <p class="TextInTable">MM</p>
  185.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  186.       <p class="TextInTable">Month as Jan-Dec</p>
  187.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  188.       <p class="TextInTable">MMM</p>
  189.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  190.       <p class="TextInTable">Month as January-December</p>
  191.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  192.       <p class="TextInTable">MMMM</p>
  193.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  194.       <p class="TextInTable">First letter of Name of Month</p>
  195.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  196.       <p class="TextInTable">MMMMM</p>
  197.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  198.       <p class="TextInTable">Day as 2.28.</p>
  199.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  200.       <p class="TextInTable">D</p>
  201.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  202.       <p class="TextInTable">Day as 02</p>
  203.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  204.       <p class="TextInTable">DD</p>
  205.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  206.       <p class="TextInTable">Day as Sun-Sat</p>
  207.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  208.       <p class="TextInTable">NN or DDD</p>
  209.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  210.       <p class="TextInTable">Day as Sunday to Saturday</p>
  211.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  212.       <p class="TextInTable">NNN or DDDD</p>
  213.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  214.       <p class="TextInTable">Day followed by comma, as in "Sunday,"</p>
  215.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  216.       <p class="TextInTable">NNNN</p>
  217.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  218.       <p class="TextInTable">Year as 00-99</p>
  219.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  220.       <p class="TextInTable">YY</p>
  221.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  222.       <p class="TextInTable">Year as 1900-2078</p>
  223.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  224.       <p class="TextInTable">YYYY</p>
  225.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  226.       <p class="TextInTable">Calendar week</p>
  227.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  228.       <p class="TextInTable">WW</p>
  229.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  230.       <p class="TextInTable">Quarterly as Q1 to Q4</p>
  231.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  232.       <p class="TextInTable">Q</p>
  233.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  234.       <p class="TextInTable">Quarterly as 1st quarter to 4th quarter</p>
  235.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  236.       <p class="TextInTable">QQ</p>
  237.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  238.       <p class="TextInTable">Era on the Japanese Gengou calendar, single character (possible values are: M, D, S, H)</p>
  239.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  240.       <p class="TextInTable">G</p>
  241.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  242.       <p class="TextInTable">Era, abbreviation</p>
  243.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  244.       <p class="TextInTable">GG</p>
  245.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  246.       <p class="TextInTable">Era, full name</p>
  247.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  248.       <p class="TextInTable">GGG</p>
  249.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  250.       <p class="TextInTable">Number of the year within an era, without a leading zero for single-digit years</p>
  251.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  252.       <p class="TextInTable">E</p>
  253.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  254.       <p class="TextInTable">Number of the year within an era, with a leading zero for single-digit years</p>
  255.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  256.       <p class="TextInTable">EE or R</p>
  257.      </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  258.       <p class="TextInTable">Era, full name and year</p>
  259.      </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  260.       <p class="TextInTable">RR or GGGEE</p>
  261.      </span></td></tr></table>
  262.    <p class="Paragraph">You can adopt the following character strings into the format code if you want to use a certain calendar format. If there is no specific code entered, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> will choose the best-possible calendar to be used.</p>
  263.    <table><tr class=""><td style="text-align:left;"><span class="Tabelle8A">
  264.       <p class="TextInTable">[~gregorian]</p>
  265.      </span></td><td style="text-align:left;"><span class="Tabelle8B">
  266.       <p class="TextInTable">Gregorian Calendar</p>
  267.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle8A">
  268.       <p class="TextInTable">[~gengou]</p>
  269.      </span></td><td style="text-align:left;"><span class="Tabelle8B">
  270.       <p class="TextInTable">Japanese Gengou Calendar</p>
  271.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle8A">
  272.       <p class="TextInTable">[~ROC]</p>
  273.      </span></td><td style="text-align:left;"><span class="Tabelle8B">
  274.       <p class="TextInTable">Korean Calendar</p>
  275.      </span></td></tr></table>
  276.    <p class="Paragraph">All calendar formats are dependent upon the "locale" setting, which you can select in <span class="T1">Tools - Options - Language settings - Languages</span>. An example: The date format code, E, EE, R or RR switches the calendar to the first non-Gregorian calendar that is entered in the current locale setting. If you use a Japanese locale setting this is the Gengou calendar. If you use a Korean locale setting this is the ROC calendar. If no other calendar is entered in the locale setting, the Gregorian calendar is used.</p>
  277.    <p class="Paragraph"><help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="CALC">When you calculate with cell references in which at least one of the references is assigned a date or time format, the result is automatically displayed in a corresponding format. You can, however, manually assign a different format to the formula cell. You have the following options:</help:case></help:switch></p>
  278.    <help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="CALC">
  279.    <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><th class="Tabelle9A1" style="text-align:left;"><span class="Tabelle9A">
  280.        <p class="TableHead">Initial Format</p>
  281.       </span></th><th class="Tabelle9B1" style="text-align:left;"><span class="Tabelle9B">
  282.        <p class="TableHead">Result Format</p>
  283.       </span></th></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  284.       <p class="TextInTable">Date + Date</p>
  285.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  286.       <p class="TextInTable">Number (Days)</p>
  287.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  288.       <p class="TextInTable">Date + Number</p>
  289.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  290.       <p class="TextInTable">Date</p>
  291.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  292.       <p class="TextInTable">Date + Time</p>
  293.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  294.       <p class="TextInTable">Date&Time</p>
  295.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  296.       <p class="TextInTable">Date + Date&Time</p>
  297.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  298.       <p class="TextInTable">Number</p>
  299.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  300.       <p class="TextInTable">Time + Time</p>
  301.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  302.       <p class="TextInTable">Time</p>
  303.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  304.       <p class="TextInTable">Time + Number</p>
  305.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  306.       <p class="TextInTable">Time</p>
  307.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  308.       <p class="TextInTable">Time + Date&Time</p>
  309.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  310.       <p class="TextInTable">Date&Time</p>
  311.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  312.       <p class="TextInTable">Date&Time + Date&Time</p>
  313.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  314.       <p class="TextInTable">Time</p>
  315.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  316.       <p class="TextInTable">Date&Time + Number</p>
  317.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  318.       <p class="TextInTable">Date&Time</p>
  319.      </span></td></tr><tr class=""><td class="Tabelle9A2" style="text-align:left;"><span class="Tabelle9A">
  320.       <p class="TextInTable">Number + Number</p>
  321.      </span></td><td class="Tabelle9B2" style="text-align:left;"><span class="Tabelle9B">
  322.       <p class="TextInTable">Number</p>
  323.      </span></td></tr></table>
  324.    </help:case></help:switch>
  325.    <p class="Paragraph"><help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="CALC">The Date&Time format displays the date and time and is created as soon as a value in date format is added to a value in time format.</help:case></help:switch></p>
  326.    <p class="Paragraph"><help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="CALC">Besides addition, you can also subtract, multiply or divide values. The date system for calculation with the date value of 0 is defined under <help:link Id="66267"><span class="T1">Tools - Options - Spreadsheets... - Calculate</span></help:link>. In the default setting, the date serial number 0 corresponds to 12. 30.1899.</help:case></help:switch></p>
  327.    <p class="Paragraph"><help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="CALC">If you enter a two-digit year, the 29/30 rule will apply to determine whether it is 19xx or 20xx. For example, 1/1/10 will be calculated as the year 2010, while 1/1/30 will be calculated as 1/1/1930. When opening documents made in an earlier version than <help:productname>%PRODUCTNAME</help:productname> Calc 5.0 (in which nearly all two-digit years have the prefix 19, except the last days of 1899, see above), the old rule applies.</help:case></help:switch></p>
  328.    <help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="CALC"><help:embedded Id="66281" Eid="jahreszahlen"/></help:case></help:switch>
  329.    <p class="Head2"><help:key-word value="time formats" tag="kw65744_11" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="formats; time formats" tag="kw65744_10" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; time formats" tag="kw65744_9" xmlns:help="http://openoffice.org/2000/help"/>Number Format Codes for Time Formats</p>
  330.    <p class="Paragraph">To display hours, minutes and seconds insert the following format codes.</p>
  331.    <table><tr class=""><th style="text-align:left;"><span class="Tabelle5A">
  332.        <p class="TableHead">Format</p>
  333.       </span></th><th style="text-align:left;"><span class="Tabelle5A">
  334.        <p class="TableHead">Format Code</p>
  335.       </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  336.       <p class="TextInTable">Hours as 0-23</p>
  337.      </span></td><td style="text-align:left;"><span class="Tabelle5A">
  338.       <p class="TextInTable">h</p>
  339.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  340.       <p class="TextInTable">Hours as 00-23</p>
  341.      </span></td><td style="text-align:left;"><span class="Tabelle5A">
  342.       <p class="TextInTable">hh</p>
  343.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  344.       <p class="TextInTable">Minutes as 0-59</p>
  345.      </span></td><td style="text-align:left;"><span class="Tabelle5A">
  346.       <p class="TextInTable">m</p>
  347.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  348.       <p class="TextInTable">Minutes as 00-59</p>
  349.      </span></td><td style="text-align:left;"><span class="Tabelle5A">
  350.       <p class="TextInTable">mm</p>
  351.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  352.       <p class="TextInTable">Seconds as 0-59</p>
  353.      </span></td><td style="text-align:left;"><span class="Tabelle5A">
  354.       <p class="TextInTable">s</p>
  355.      </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  356.       <p class="TextInTable">Seconds as 00-59</p>
  357.      </span></td><td style="text-align:left;"><span class="Tabelle5A">
  358.       <p class="TextInTable">ss</p>
  359.      </span></td></tr></table>
  360.    <p class="Paragraph"/>
  361.    <table><tr class="Tabelle71"><th class="Tabelle7A1" style="text-align:left;"><span class="Tabelle7A">
  362.        <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  363.       </span></th><th class="Tabelle7A1" style="text-align:left;"><span class="Tabelle7B">
  364.        <p class="TextInTable">You can also use the decimal point in format code to display fractions of seconds. For example, with the code hh:mm:ss,00 you show the time as 01:02:03,45.</p>
  365.       </span></th></tr></table>
  366.    <p class="Paragraph"/>
  367.    <p class="Paragraph"><help:key-word value="time format; over 24 hours" tag="kw65744_8" xmlns:help="http://openoffice.org/2000/help"/>To show a time with more than 24 hours or more than 60 minutes or seconds, place the outer left part of the code in square brackets. For example, the time code [h]:mm:ss will display more than 24 hours.</p>
  368.    <p class="Paragraph">You can calculate with time formats as you would with number formats. This is useful, for example, for subtraction such as: Duration=End time-Start time.</p>
  369.    <p class="Paragraph">If a time is entered in the form 02:03,45 or 01:02:03,45 or 25:01:02, the following formats will be assigned if no other time format is set: MM:SS,00 or [HH]:MM:SS,00 or [HH]:MM:SS. For addition and subtraction of times, the value of the cell is displayed in a format according to the result. For example, this follows the pattern =End time - Start time or =(End time - Start time)*24*Hourly rate.</p>
  370.    <p class="Head2"><help:key-word value="currency formats" tag="kw65744_7" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="formats; currency formats" tag="kw65744_6" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; currency formats" tag="kw65744_5" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="Euro; currency formats" tag="kw65744_4" xmlns:help="http://openoffice.org/2000/help"/>Number Format Codes of Currency Formats</p>
  371.    <p class="Paragraph">For the currency format the currency symbol that is available according to the locale setting is specified as the default, if you have selected <span class="T1">Default</span> as the language. The Euro currency can be entered with one of the following format codes:</p>
  372.    <p class="Paragraph">#.##0,00 "EUR";[ROT]-#.##0,00 "EUR"</p>
  373.    <p class="Paragraph">#.##0,00 [$Γé¼-407];[RED]-#.##0,00 [$Γé¼-407]</p>
  374.    <p class="Paragraph">The EUR banking symbol is the international abbreviation for the Euro. You see the second example if you select the "Γé¼ Deutsch (Deutschland)" entry in the <span class="T1">Format</span> combo box. The [$Γé¼-407] part of the format code means that the Euro symbol (Γé¼) and the locale setting 407 are used. You select the code for a locale setting in the <span class="T1">Format</span> combo box. The code is then automatically entered correctly in the <span class="T1">Format-Code</span> field.</p>
  375.    <help:embedded Id="65738" Eid="waehrungtext" xmlns:help="http://openoffice.org/2000/help"/>
  376.    <p class="Head2">Number Format Codes for Text and Spaces</p>
  377.    <p class="Paragraph">To display symbols, either enclose the symbol in double quotation marks or place a backslash (\) before it.</p>
  378.    <p class="Paragraph">To create a space the width of a character in the code format, insert an underscore (_) followed by this sign. By entering an underscore and a closing bracket, for example, positive numbers will be displayed flush with negative numbers in brackets.</p>
  379.    <p class="Paragraph">To include text in a number format, insert the @ sign in the format. The text entered will be formatted according to the section containing the @ sign. If the format does not contain any text, the text you enter will not be affected by the format.</p>
  380.    <p class="Head2">Other Number Format Codes</p>
  381.    <p class="Paragraph">To display numbers as percentages, (i.e., the number is multiplied by 100) add the percent sign to the number format.</p>
  382.    <p class="Head3">Scientific Format</p>
  383.    <p class="Paragraph">To display numbers in scientific format, add the following format codes to a section. If a format contains a 0 or the # sign to the right of an E-, E+, e- or e+, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> will display the number in scientific format and adds an "E" or an "e." The number of zeros or # signs to the right determine the number of exponential places. E- or e- will show a minus sign for negative exponents. E+ or e+ will display a minus sign in negative exponents and a plus sign in positive exponents.</p>
  384.    <p class="Head3">Formats with Prefixes and Suffixes</p>
  385.    <p class="Paragraph">You can add text extensions to number formats (prefixes and suffixes) and format cells with these codes. For example, define the following format code:</p>
  386.    <p class="PropText">0 "plus";0 "minus";0 "Null"</p>
  387.    <p class="Paragraph">Using this code, the cell values are displayed as rounded integers, with the text enclosed in quotation marks added as a suffix (the text is displayed without quotation marks in the cell).</p>
  388.    <p class="Paragraph">In this example, by entering "1" in a cell the result will be "1 plus." Entering "-5" will produce "5 minus."</p>
  389.    <p class="Head3"><a name="einbeispiel"/><help:key-word value="number format code; with conditions" tag="kw65744_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="conditions; for number format codes" tag="kw65744_2" xmlns:help="http://openoffice.org/2000/help"/>Conditions in Number Formats</p>
  390.    <p class="Paragraph">You can directly include conditions as comparisons to numbers in the format code. Look at the following example:</p>
  391.    <p class="PropText">[<=4][GREEN]#.##0,00;[>7][RED]#.##0,00;[BLUE]#.##0,00</p>
  392.    <p class="Paragraph">In this case a cell is formatted in the number format #.##0,00. If the value in the cell is smaller that or equal to 4 the text color green will be used, red will be used for a value over 7. The text color blue will be used in all other cases.</p>
  393.    <p class="Paragraph">The relational operators <, <=, >, >=, = and <> can be used in combination with any number whatsoever.</p>
  394.   </body></html>